package com.mybatis.moudles.mybatis.service;

import com.mybatis.moudles.mybatis.mapper.StudentMapper;
import com.mybatis.moudles.mybatis.model.Student;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexServiceImpl implements IndexService{
    @Resource
    private StudentMapper studentMapper;

    @Override
    public List<Student> getAll() {
        List<Student> result = studentMapper.findAll();
        return result;
    }
}
